Explain disadvantages of building pciback as a module in Kconfig help.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 9 Mar 2006 14:56:12 +0000 (15:56 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 9 Mar 2006 14:56:12 +0000 (15:56 +0100)
Fix a module-loading bug in pciback.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/Kconfig
linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c

index eaf774af550a1201ddd4a2920c4be1c1d2975097..5cc8484a2ac7710367f111c416a8521857404deb 100644 (file)
@@ -35,7 +35,9 @@ config XEN_PCIDEV_BACKEND
        default XEN_PRIVILEGED_GUEST
        help
          The PCI device backend driver allows the kernel to export arbitrary
-         PCI devices to other guests.
+         PCI devices to other guests. If you select this to be a module, you
+         will need to make sure no other driver has bound to the device(s)
+         you want to make visible to other guests.
 
 choice
        prompt "PCI Backend Mode"
index 2e0b8a0110b28b8031e93a02e15aaf709a4fa7ff..f3c6f019e08604e56244f43d767553eff9e03d67 100644 (file)
@@ -378,7 +378,7 @@ fs_initcall(pcistub_init);
 
 static int __init pciback_init(void)
 {
-#ifndef MODULE
+#ifdef MODULE
        int err;
 
        err = pcistub_init();